﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("-----------------------任务NPC-----------------------");
            TaskNpc tn1 = new TaskNpc("小白兔",NpcType.Task,"帮我送封信");
            TaskNpc tn2 = new TaskNpc("小灰兔", NpcType.Task, "去击杀一下野怪");
            TaskNpc tn3 = new TaskNpc("大白兔", NpcType.Task, "帮我挖俩根胡萝卜");
            Test(tn1);
            Test(tn2);
            Test(tn3);
            Console.WriteLine("-----------------------商贩NPC-----------------------");
            ShopTask st1 = new ShopTask("商贩", NpcType.Shop, "武器");
            ShopTask st2 = new ShopTask("商贩", NpcType.Shop, "材料");
            ShopTask st3 = new ShopTask("商贩", NpcType.Shop, "食物");
            Test(st1);
            Test(st2);
            Test(st3);
            Console.WriteLine("-----------------------铁匠NPC-----------------------");
            IronTask it1 = new IronTask("商贩", NpcType.Iron, "武器");
            IronTask it2 = new IronTask("商贩", NpcType.Iron, "材料");
            IronTask it3 = new IronTask("商贩", NpcType.Iron, "食物");
            Test(it1);
            Test(it2);
            Test(it3);
        }
        static void Test(Npc npc)
        {
            npc.speck();
        }
    }
}
